// 错误示例
const num: number = 1;

switch (num) {
case 0:
    console.log(1);
    break;

case 1:
    console.log(2);
    break;

default:
    break;
}

// 正确示例
switch (num) {
  case 0:
    console.log(1);
    break;

  case 1:
    console.log(2);
    break;

  default:
    break;
}
